﻿using ERPSystem.Common.BaseEntitys;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ERPSystem.Common.Domains.SalesOrderCommom
{
    /// <summary>
    /// 销售出库物料表
    /// </summary>
    public class SellOutMaterials: BaseEntity
    {
        /// <summary>
        /// 主键 序号
        /// </summary>
        [SugarColumn(IsIdentity = true, IsPrimaryKey = true)]
        public int SellOutMaterialsId { get; set; }
        /// <summary>
        /// 出单编号
        /// </summary>
        [SugarColumn(ColumnDataType = "Nvarchar(200)", IsNullable = true)]
        public string DocumentNumber { get; set; }
        /// <summary>/////
        /// 物料编码(外键 与物料表关联)
        /// </summary>
        [SugarColumn(ColumnDataType = "Nvarchar(100)", IsNullable = true)]
        public string ItemBianma { get; set; }
        /// <summary>
        /// 物料名称
        /// </summary>
        [SugarColumn(ColumnDataType = "Nvarchar(200)", IsNullable = true)]
        public string MaterialName { get; set; }
        /// <summary>
        /// 型号规格
        /// </summary>
        [SugarColumn(ColumnDataType = "Nvarchar(200)", IsNullable = true)]
        public string TypeSpecification { get; set; }
        /// <summary>
        /// 主计量
        /// </summary>
        [SugarColumn(ColumnDataType = "Nvarchar(200)", IsNullable = true)]
        public string DocumentType { get; set; }
        /// <summary>
        /// 出库数量
        /// </summary>

        public int OutboundQuantity { get; set; }
        /// <summary>
        /// 批号
        /// </summary>
        [SugarColumn(ColumnDataType = "Nvarchar(200)", IsNullable = true)]
        public string LotNumber { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        [SugarColumn(ColumnDataType = "Nvarchar(200)", IsNullable = true)]
        public string Remark { get; set; }
        /// <summary>
        /// 流水号
        /// </summary>
        [SugarColumn(ColumnDataType = "Nvarchar(200)", IsNullable = true)]
        public string SerialNumber { get; set; }
    }
}
